home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / mhgsml11.zip / INSTALLS.BAT < prev    next >
DOS Batch File  |  1993-06-01  |  3KB  |  69 lines

  1. echo off
  2. cls
  3. echo 'MHG*ArcLib V1 - Small Package Installation batch file.
  4. echo 'Provided by Marshall H. Goodman Software Ltd.
  5. echo '
  6. echo 'Batch File syntax: INSTALLS path drive
  7. echo '           where: 'path' is the sub-dir where WINDOWS is installed
  8. echo '           where: 'drive' is where you want MHG*ArcLib to be installed
  9. echo '
  10. echo '              eg: INSTALLS E:\WINDOWS D:
  11. echo '
  12. echo 'This batch file will create the MHGARLIB sub-directory on the requested
  13. echo 'drive, copy the install files to the MHG*ArcLib sub-directory and expand
  14. echo 'the compressed file AL_PKG there.  Several DLL's will be copied to
  15. echo 'your windows\system sub-directory.  Then you can then start up the
  16. echo 'MHGARLIB.EXE program from Windows.
  17. echo '
  18. echo 'Windows is in your %1 sub-directory and
  19. echo 'MHG*ArcLib will be installed on your %2 drive
  20. echo 'If this is not correct, press CTRL-BREAK followed by 'Y' to terminate.
  21. echo '
  22. pause
  23. if "%1" == "" goto NOPATH
  24. if "%2" == "" goto NODRIVE
  25. if not exist %1\SYSTEM\*.* goto PATHNO
  26. if not exist %2\*.* goto DRIVENO
  27. md %2\mhgarlib
  28. if not errorlevel 0 goto NODIR
  29. md %2\mhgarlib\arcwork
  30. md %2\mhgarlib\target
  31. if not errorlevel 0 goto NODIR
  32. copy *.* %2\mhgarlib
  33. %2\mhgarlib\SM_AL_PKG.EXE %2\mhgarlib
  34. if not exist %1\SYSTEM\SETUPKIT.DLL copy %2\mhgarlib\SETUPKIT.DLL %1\SYSTEM
  35. if not exist %1\SYSTEM\VER.DLL copy %2\mhgarlib\VER.DLL %1\SYSTEM
  36. if not exist %1\SYSTEM\VXBASE.DLL copy %2\mhgarlib\VXBASE.DLL %1\SYSTEM
  37. if not exist %1\SYSTEM\GRID.VBX copy %2\mhgarlib\GRID.VBX %1\SYSTEM
  38. erase %2\mhgarlib\SETUPKIT.DLL
  39. erase %2\mhgarlib\VER.DLL
  40. erase %2\mhgarlib\VXBASE.DLL
  41. erase %2\mhgarlib\GRID.VBX
  42. erase %2\mhgarlib\SM_AL_PKG.EXE
  43. echo Copying complete.  You can now enter Windows and run MHGARLIB.EXE from
  44. echo the \MHGARLIB sub-directory on this drive.
  45. echo Note: ignore the following 'batch file missing' message, it's ok.
  46. erase SM_AL_PKG.EXE
  47. erase FEATURES.DOC
  48. erase READ1STS.DOC
  49. erase ZIPLIST.DOC
  50. goto FINAL
  51. :NODRIVE
  52. echo You have not specified a drive letter for MHG*ArcLib.  INSTALL Cancelled.
  53. goto ZM_EXIT
  54. :NOPATH
  55. echo You have not specified a path where WINDOWS is.  INSTALL Cancelled.
  56. goto ZM_EXIT
  57. :DRIVENO
  58. echo The drive letter %2 does not exist.  INSTALL Cancelled.
  59. goto ZM_EXIT
  60. :PATHNO
  61. echo The sub-directory %1 does not exist.  INSTALL Cancelled.
  62. goto ZM_EXIT
  63. :NODIR
  64. echo The attempt to make the MHGARLIB sub-directory failed. INSTALL Cancelled.
  65. goto ZM_EXIT
  66. :FINAL
  67. erase INSTALLS.BAT
  68. :ZM_EXIT
  69.